"""
@File    : count.py
@Author  : WorldWind(1772830365@qq.com)
@Time    : 2025/7/14
@Address : ChangSha - BoWeiFeng
@Date    : 2025/7/14 上午10:15
"""


class Count:
    value = 0
    def __init__(self):
        print('This is __init__ method. Count class startup')
    def increment(self):
        self.value += 1

    def decrement(self):
        if self.value >= 1:
            self.value -= 1
        else:
            print("value's value < 1")

    def get_value(self):
        print(self.value)
    def __del__(self):
        print('This is __del__ method. The Count class has been recycled')

c1 = Count()
c1.increment()
c1.increment()
c1.decrement()
c1.get_value()